

public class Cat extends Animal{
    //成员变量省略掉
    @Override
    public void eat(){
        System.out.println("猫吃鱼，吃猫条");
    }
    public void sleep(){
        System.out.println("猫躺着睡，睡猫窝");
    }
    
}
